<%@ include file="/common/taglibs.jsp"%>
<title><fmt:message key="orderPrintList.heading" /></title>
<META name="decorator" content="printable"/>


<%
	java.util.Date now = new java.util.Date();
	request.setAttribute("now", now);
%>
<c:forEach var="order" items="${salesOrderList}" varStatus="listStatus">
	<div class="bill_list clearfix">
		<div class="top_head clearfix">
			<div class="logo_r">
				&nbsp;
			</div>
			<div class="txt">
				<fmt:message key="salesOrder.name" />
			</div>
		</div>
		<div class="content_bill clearfix">
			<div class="title clearfix">
				<h2>
					<fmt:message key="salesOrder.orderNo" />
					：${order.orderNo}
				</h2>
				<span> <fmt:message key="orderPrintList.print.date" /> ：
					<common:datetimeFormat date="${now}" /> </span>
			</div>
			<%---------------------------------购买的商品 -------------------------%>
			<%@include file="include/salesOrderPrintList4Product.jspf" %>
			<br/>
			<%---------------------------------购买的礼券 -------------------------%>
			<%@include file="include/salesOrderPrintList4Gc.jspf" %> 
			<br/>
			<%---------------------------------兑换的礼品 -------------------------%>
			<%@include file="include/salesOrderPrintList4Gift.jspf" %>
			<div class="total_money clearfix">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="vertical-align: top; width: 40%">
							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_info">
								<%---------------------------------优惠方案 -------------------------%>
								<c:if test="${not empty order.orderPromotions}">
									<%@include file="include/salesOrderPrintList4Promotion.jspf" %> 
									<tr>
										<td colspan="2"><br/><br/></td>
									</tr>
								</c:if>
								<%---------------------------------购货人信息 -------------------------%>
								<%@include file="include/salesOrderPrintList4Customer.jspf" %>
								<tr>
									<td colspan="2"><br/><br/></td>
								</tr>
								<%---------------------------------收货人信息 -------------------------%>
								<%@include file="include/salesOrderPrintList4Consignee.jspf" %>
							</table>
						</td>
						<td style="vertical-align: top; width: 20%">
						</td>
						<td style="vertical-align: top; width: 40%">
							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_info">
								<%---------------------------------结算金额信息 -------------------------%>
								<%@include file="include/salesOrderPrintList4Money.jspf" %>
								<tr>
									<td colspan="2"><br/><br/></td>
								</tr>
								<%---------------------------------收货人信息 -------------------------%>
								<%@include file="include/salesOrderPrintList4Status.jspf" %>
							</table>
						</td>
				</table>
			</div>
			<div class="total_money clearfix">
		        <table width="100%" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<th width="700px;" align="right">
							<fmt:message key="orderPrint.sign" />
							:
						</th>
						<td>
							______________________
						</td>
					</tr>	
				</table>
	        </div>
		</div>
	</div>
	<c:if test="${ fn:length(salesOrderList) !=  (listStatus.index+1) }" >
		<div class="pageBreak"></div>
		<hr/>
	</c:if>
</c:forEach>
